package com.moli.iov.down.config;

import com.moli.iov.producer.KafkaProducerUtil;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;
import org.springframework.context.annotation.PropertySource;

/**
 * <p>
 *
 * </p>
 *
 * @author zql
 * @since 2019/11/14 20:03
 */
@Configuration
@ImportResource(locations= {"classpath:kafkProducer/kafkaProducer.xml",
    "classpath:kafka/spring-kafka-consumer.xml"})
@PropertySource(value = {"classpath:config/kafkaProducerServer.properties"},encoding = "utf-8")
public class KafkaConfig {

  @Bean
  public KafkaProducerUtil kafkaProducerUtil(){
    return new KafkaProducerUtil();
  }
}
